package com.it.commicity.mapper.sys;

import com.it.commicity.domain.po.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.commicity.domain.vo.SysUserVo;
import com.it.commicity.domain.vo.user.SysUserDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-07-11
 */

public interface SysUserMapper extends BaseMapper<SysUser> {

    SysUser login(String userName);

    SysUserDto queryByUserId(Long userId);

    int updateUserImageByUserId(Long userId, String image);

    void updatPhoneByUserId(String phone, Long userId);

    void updateUserPasswordByUserId(String newPassword, Long userId);
}
